from PySide6.QtCore import QObject, QTimer
from PySide6.QtWidgets import QTableWidgetItem, QWidget
from PySide6.QtCore import QObject, QTimer


class Task:
    window = None
    ui = None
    sync_time = 5

    def __init__(self, window):
        self.window = window
        self.timer = QTimer()
        self.timer.timeout.connect(window.handle)
        self.timer.start(self.sync_time * 1000)
        print("sync_time is %s s" % self.sync_time)
